<template>
    <router-link :to="link" class="btn">
        <i v-if="fix === 'left'" class="fa p-r-5" :class="icon"></i>
        <slot></slot>
        <i v-if="fix !== 'left'" class="fa p-l-5" :class="icon"></i>
    </router-link>
</template>

<script>
    export default {
    	name: 'IconButton',
        props: {
            link: {default: '#'},
            fix: {default: 'left'},
            icon: {type: String}
        }
    };
</script>
